﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Collections;
using log4net;
using FSS.BLL.Entities;
namespace FSS.BLL.Services
{
	#region VoucherOutService

	/// <summary>
	/// VoucherOutService object for Ibatis mapped table 'VoucherOut'.
	/// </summary>
	public class VoucherOutService : IVoucherOutService
	{
		private static readonly ILog log = LogManager.GetLogger(typeof(VoucherOutService).Name);
	  	private static volatile VoucherOutService _VoucherOutService = null;
        public static VoucherOutService GetInstance()
        {
            if (_VoucherOutService == null)
            {
                lock (typeof(VoucherOutService))
                {
                    if (_VoucherOutService == null) // double-check
                        _VoucherOutService = new VoucherOutService();
                }
            }
            return _VoucherOutService;
        }
		public VoucherOutService()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        /// <summary>
        /// Tìm kiếm Chứng từ xuất kho trả lại
        /// </summary>
        /// <param name="VoucherOutNo">Mã phiếu</param>
        /// <param name="FromDate">từ ngày</param>
        /// <param name="ToDate">tới ngày</param>
        /// <param name="CustomerId">Nhà cung cấp</param>
        /// <param name="TotalAmount">tổng tiền</param>
        /// <returns></returns>
        public IList<VoucherOutEntity> VoucherOutReturnSearchData(VoucherOutEntity obj)
        {
            return ExecuteQueryForList<VoucherOutEntity>("VoucherOutReturnSearchData", obj);           
        }
	}
	#endregion  
}
